Programming Concepts in C++ by Robert Burns
Author:Robert Burns [Burns, Robert]
Language: eng
Format: epub, pdf
ISBN: 9781499044812
Publisher: Xlibris US
Published: 2014-07-21T21:00:00+00:00
7.3.4 Classic Min/Max Loop
As it was presented in the previous chapter, a classic min/max problem is finding the largest and smallest among three values. In this variation we find the largest and smallest among an unlimited number of values, using an event-controlled loop. The loop is controlled using the “sentinel method” – when the user enters a certain value outside of the expected range of values, it is a signal to exit the loop. As in the example from the previous chapter, we use test scores whose values are expected to be in the range of 0 to 100. Here are some code blocks that show how this is done:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12526)
Hello! Python by Anthony Briggs(9871)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9761)
The Mikado Method by Ola Ellnestam Daniel Brolund(9752)
Dependency Injection in .NET by Mark Seemann(9297)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8262)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7745)
Grails in Action by Glen Smith Peter Ledbrook(7671)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7521)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(6759)
Microservices with Go by Alexander Shuiskov(6526)
Practical Design Patterns for Java Developers by Miroslav Wengner(6422)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6401)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6383)
Angular Projects - Third Edition by Aristeidis Bampakos(5785)
The Art of Crafting User Stories by The Art of Crafting User Stories(5313)
NetSuite for Consultants - Second Edition by Peter Ries(5254)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5075)
Kotlin in Action by Dmitry Jemerov(5023)
